<?php


namespace app\api\model;

use app\common\exception\BaseException;
use app\common\model\BankSub as BankSubModel;

class BankSub extends BankSubModel
{
    public function lists($areaid = 0,$bankid = 0){
        if(!$areaid){
            throw new BaseException(['code'=>10000,'msg' => '地区编号缺失','data'=>1]);
            return false;
        }
        if(!$bankid){
            throw new BaseException(['code'=>10000,'msg' => '银行编号缺失','data'=>1]);
            return false;
        }
        return self::getList($areaid,$bankid);
    }
}